package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class GameDetailsRecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public GameDetailsRecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGdrnoIsNull() {
            addCriterion("gdrno is null");
            return (Criteria) this;
        }

        public Criteria andGdrnoIsNotNull() {
            addCriterion("gdrno is not null");
            return (Criteria) this;
        }

        public Criteria andGdrnoEqualTo(String value) {
            addCriterion("gdrno =", value, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoNotEqualTo(String value) {
            addCriterion("gdrno <>", value, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoGreaterThan(String value) {
            addCriterion("gdrno >", value, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoGreaterThanOrEqualTo(String value) {
            addCriterion("gdrno >=", value, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoLessThan(String value) {
            addCriterion("gdrno <", value, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoLessThanOrEqualTo(String value) {
            addCriterion("gdrno <=", value, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoLike(String value) {
            addCriterion("gdrno like", value, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoNotLike(String value) {
            addCriterion("gdrno not like", value, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoIn(List<String> values) {
            addCriterion("gdrno in", values, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoNotIn(List<String> values) {
            addCriterion("gdrno not in", values, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoBetween(String value1, String value2) {
            addCriterion("gdrno between", value1, value2, "gdrno");
            return (Criteria) this;
        }

        public Criteria andGdrnoNotBetween(String value1, String value2) {
            addCriterion("gdrno not between", value1, value2, "gdrno");
            return (Criteria) this;
        }

        public Criteria andCrnoIsNull() {
            addCriterion("crno is null");
            return (Criteria) this;
        }

        public Criteria andCrnoIsNotNull() {
            addCriterion("crno is not null");
            return (Criteria) this;
        }

        public Criteria andCrnoEqualTo(String value) {
            addCriterion("crno =", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoNotEqualTo(String value) {
            addCriterion("crno <>", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoGreaterThan(String value) {
            addCriterion("crno >", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoGreaterThanOrEqualTo(String value) {
            addCriterion("crno >=", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoLessThan(String value) {
            addCriterion("crno <", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoLessThanOrEqualTo(String value) {
            addCriterion("crno <=", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoLike(String value) {
            addCriterion("crno like", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoNotLike(String value) {
            addCriterion("crno not like", value, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoIn(List<String> values) {
            addCriterion("crno in", values, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoNotIn(List<String> values) {
            addCriterion("crno not in", values, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoBetween(String value1, String value2) {
            addCriterion("crno between", value1, value2, "crno");
            return (Criteria) this;
        }

        public Criteria andCrnoNotBetween(String value1, String value2) {
            addCriterion("crno not between", value1, value2, "crno");
            return (Criteria) this;
        }

        public Criteria andTocdnoIsNull() {
            addCriterion("tocdno is null");
            return (Criteria) this;
        }

        public Criteria andTocdnoIsNotNull() {
            addCriterion("tocdno is not null");
            return (Criteria) this;
        }

        public Criteria andTocdnoEqualTo(String value) {
            addCriterion("tocdno =", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoNotEqualTo(String value) {
            addCriterion("tocdno <>", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoGreaterThan(String value) {
            addCriterion("tocdno >", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoGreaterThanOrEqualTo(String value) {
            addCriterion("tocdno >=", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoLessThan(String value) {
            addCriterion("tocdno <", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoLessThanOrEqualTo(String value) {
            addCriterion("tocdno <=", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoLike(String value) {
            addCriterion("tocdno like", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoNotLike(String value) {
            addCriterion("tocdno not like", value, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoIn(List<String> values) {
            addCriterion("tocdno in", values, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoNotIn(List<String> values) {
            addCriterion("tocdno not in", values, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoBetween(String value1, String value2) {
            addCriterion("tocdno between", value1, value2, "tocdno");
            return (Criteria) this;
        }

        public Criteria andTocdnoNotBetween(String value1, String value2) {
            addCriterion("tocdno not between", value1, value2, "tocdno");
            return (Criteria) this;
        }

        public Criteria andGdrtimeIsNull() {
            addCriterion("gdrtime is null");
            return (Criteria) this;
        }

        public Criteria andGdrtimeIsNotNull() {
            addCriterion("gdrtime is not null");
            return (Criteria) this;
        }

        public Criteria andGdrtimeEqualTo(String value) {
            addCriterion("gdrtime =", value, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeNotEqualTo(String value) {
            addCriterion("gdrtime <>", value, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeGreaterThan(String value) {
            addCriterion("gdrtime >", value, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeGreaterThanOrEqualTo(String value) {
            addCriterion("gdrtime >=", value, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeLessThan(String value) {
            addCriterion("gdrtime <", value, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeLessThanOrEqualTo(String value) {
            addCriterion("gdrtime <=", value, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeLike(String value) {
            addCriterion("gdrtime like", value, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeNotLike(String value) {
            addCriterion("gdrtime not like", value, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeIn(List<String> values) {
            addCriterion("gdrtime in", values, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeNotIn(List<String> values) {
            addCriterion("gdrtime not in", values, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeBetween(String value1, String value2) {
            addCriterion("gdrtime between", value1, value2, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrtimeNotBetween(String value1, String value2) {
            addCriterion("gdrtime not between", value1, value2, "gdrtime");
            return (Criteria) this;
        }

        public Criteria andGdrplayerIsNull() {
            addCriterion("gdrplayer is null");
            return (Criteria) this;
        }

        public Criteria andGdrplayerIsNotNull() {
            addCriterion("gdrplayer is not null");
            return (Criteria) this;
        }

        public Criteria andGdrplayerEqualTo(String value) {
            addCriterion("gdrplayer =", value, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerNotEqualTo(String value) {
            addCriterion("gdrplayer <>", value, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerGreaterThan(String value) {
            addCriterion("gdrplayer >", value, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerGreaterThanOrEqualTo(String value) {
            addCriterion("gdrplayer >=", value, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerLessThan(String value) {
            addCriterion("gdrplayer <", value, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerLessThanOrEqualTo(String value) {
            addCriterion("gdrplayer <=", value, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerLike(String value) {
            addCriterion("gdrplayer like", value, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerNotLike(String value) {
            addCriterion("gdrplayer not like", value, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerIn(List<String> values) {
            addCriterion("gdrplayer in", values, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerNotIn(List<String> values) {
            addCriterion("gdrplayer not in", values, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerBetween(String value1, String value2) {
            addCriterion("gdrplayer between", value1, value2, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andGdrplayerNotBetween(String value1, String value2) {
            addCriterion("gdrplayer not between", value1, value2, "gdrplayer");
            return (Criteria) this;
        }

        public Criteria andResultIsNull() {
            addCriterion("result is null");
            return (Criteria) this;
        }

        public Criteria andResultIsNotNull() {
            addCriterion("result is not null");
            return (Criteria) this;
        }

        public Criteria andResultEqualTo(String value) {
            addCriterion("result =", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotEqualTo(String value) {
            addCriterion("result <>", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThan(String value) {
            addCriterion("result >", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultGreaterThanOrEqualTo(String value) {
            addCriterion("result >=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThan(String value) {
            addCriterion("result <", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLessThanOrEqualTo(String value) {
            addCriterion("result <=", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultLike(String value) {
            addCriterion("result like", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotLike(String value) {
            addCriterion("result not like", value, "result");
            return (Criteria) this;
        }

        public Criteria andResultIn(List<String> values) {
            addCriterion("result in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotIn(List<String> values) {
            addCriterion("result not in", values, "result");
            return (Criteria) this;
        }

        public Criteria andResultBetween(String value1, String value2) {
            addCriterion("result between", value1, value2, "result");
            return (Criteria) this;
        }

        public Criteria andResultNotBetween(String value1, String value2) {
            addCriterion("result not between", value1, value2, "result");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}